package com.dt.app.modules.content.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈辉
 * @since 2024-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("content_type")
@ApiModel(value="ContentType对象", description="")
public class ContentType implements Serializable {

    private static final long serialVersionUID=20240313224629991L;

    @ApiModelProperty(value = "内容分类")
    @TableId(value = "content_type_id", type = IdType.AUTO)
    private Long contentTypeId;

    @ApiModelProperty(value = "父id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "会员")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "1.21.51.")
    @TableField("type_path")
    private String typePath;

    @ApiModelProperty(value = "分类名称")
    @TableField("type_name")
    private String typeName;

    @ApiModelProperty(value = "自定义模板地址")
    @TableField("model_url")
    private String modelUrl;

    @ApiModelProperty(value = "排序降序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "分类描述")
    @TableField("msg")
    private String msg;

    @ApiModelProperty(value = "分类栏目图片")
    @TableField("image_src")
    private String imageSrc;

    @ApiModelProperty(value = "1激活 0失效")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "0 1")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
